﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JkUtils
{
    public static class ColorConsole
    {
        public static void WriteLine(string text, ConsoleColor color = ConsoleColor.Black)
        {
            Console.ForegroundColor = color;
            Console.WriteLine(text);
            Console.ResetColor();
        }

        public static void WriteError(string text)
        {
            WriteLine(text, ConsoleColor.Red);
        }

        public static void WriteSuccess(string text)
        {
            WriteLine(text, ConsoleColor.Green);
        }

        public static void WriteWarning(string text)
        {
            WriteLine(text, ConsoleColor.Yellow);
        }
    }

}
